package pojo;

public class Review {
    private int id;
    private String title;
    private String img;
    private String content;
    private String type;
    private String time;
    private int like;
    private int discuss;
    private int st_id;
    private String st_name;
    private int bk_id;

    public Review() { }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public int getLike() {
        return like;
    }

    public void setLike(int like) {
        this.like = like;
    }

    public int getDiscuss() {
        return discuss;
    }

    public void setDiscuss(int discuss) {
        this.discuss = discuss;
    }

    public int getSt_id() {
        return st_id;
    }

    public void setSt_id(int st_id) {
        this.st_id = st_id;
    }

    public String getSt_name() {
        return st_name;
    }

    public void setSt_name(String st_name) {
        this.st_name = st_name;
    }

    public int getBk_id() {
        return bk_id;
    }

    public void setBk_id(int bk_id) {
        this.bk_id = bk_id;
    }




    //特殊需求，不做复用：下面用来设置中文的评论类型来显示
    //不存入数据库，用于便捷获取中文的评论类型来显示
    private String type2chn;

    public String getType2chn() {
        return type2chn;
    }

    public void setType2chn(String type2chn) {
        this.type2chn = type2chn;
    }

    public static String getType2chnByType(String type){
        switch (type){
            case "comment":
                return "短评";
            case "feel":
                return "读后感";
            case "paint":
                return "绘画";
            case "siwei":
                return "思维导图";
            case "note":
                return "读书笔记";
            case "langdu":
                return "朗读";
            case "beisong":
                return "背诵";
            default:
                return "读后感";
        }
    }
}
